﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true"
    CodeFile="CompanyResumeList.aspx.cs" Inherits="Member_Job_CompanyResumeManager" %>

<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="server">

    <script type="text/javascript" src="../../js/jquery-cn.js"></script>

    <script type="text/javascript" src="../../js/jquery.js"></script>

    <script type="text/javascript">
        function SelectAll()
        {
            // 找到所有的 input 元素
            var ctllist = document.getElementsByTagName("input");
            var objcheckbox= document.getElementById("CheckBox2");     
            for( var i = 0; i< ctllist.length; i++)
            {
                if(ctllist[i].type == "checkbox" && ctllist[i].name.indexOf( "CheckBox1") >=0 )
                {   
                    if(objcheckbox.checked==true)     
                         ctllist[i].checked = true;
                    else
                         ctllist[i].checked = false;
                }
          
             }
         }
          
    function checkbox(){
        // 找到所有的 input 元素
        var ctllist = document.getElementsByTagName("input");
        var chec=false;             
        for( var i = 0; i< ctllist.length; i++){
            if( ctllist[i].type == "checkbox" && ctllist[i].name.indexOf( "CheckBox1") >=0){
                if(ctllist[i].checked==true){
                    chec=true;  
                }
            }           
        }
        if(chec==false){
            alert("请至少选择一项");
            return false;
        }else
        {
           return confirm("确定要删除吗？");
        }    
    }  
    
     function checkbox1(){
        // 找到所有的 input 元素
        var ctllist = document.getElementsByTagName("input");
        var chec=false;             
        for( var i = 0; i< ctllist.length; i++){
            if( ctllist[i].type == "checkbox" && ctllist[i].name.indexOf( "CheckBox1") >=0){
                if(ctllist[i].checked==true){
                    chec=true;  
                }
            }           
        }
        if(chec==false){
            alert("请至少选择一项");
            return false;
        }else
        {
           return confirm("确定要将此移动到简历库吗？");
        }    
    }  
    
    
    </script>
<div class="inkg mar_top">
    <form id="form1">
            <strong class="inkgt">
                应聘人管理</strong>
                        		<div class="inso mar_top">
			<p>
                        <table cellpadding="0" cellspacing="0" border="0" width="540">
                            <tr>
                                <td>
                                    姓名：<asp:TextBox ID="txtname" runat="server" Height="17"></asp:TextBox>
                                    职位名称：<asp:DropDownList ID="dropTypeID" runat="server">
                                    </asp:DropDownList>
                                    筛选:<asp:DropDownList ID="drpResume" runat="server">
                                        <asp:ListItem Value="0">全部</asp:ListItem>
                                        <asp:ListItem Value="2">最符合</asp:ListItem>
                                        <asp:ListItem Value="1">符合</asp:ListItem>
                                        <asp:ListItem Value="3">不符合</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:Button ID="btnSelect" runat="server" Text="立即查询" CssClass="del" OnClick="btnSelect_Click">
                                    </asp:Button></td>
                            </tr>
                        </table>
			</p>
		</div>
            <div class="intab mar_top" id="intab">
                <ul class="intabt">
                    <li class="intabt2">应聘人管理 </li>
                </ul>
        <div class="intabc" id="intabc">
            <div class="con" style="display: block">
             <table cellpadding="0" cellspacing="0" border="0" class="edtb">
             <thead>
                        <tr>
                            <td>
                                选项
                            </td>
                            <td>
                                姓名
                            </td>
                            <td>
                                应聘职位名称
                            </td>
                            <td>
                                专业
                            </td>
                            <td>
                                最高学历
                            </td>
                            <td>
                                地址
                            </td>
                            <td>
                                手机
                            </td>
                            <td>
                                电话
                            </td>
                            <td>
                                登记时间
                            </td>
                            <td>
                                状态
                            </td>
                            <td>
                                简历状态
                            </td>
                            <td>
                                删除
                            </td>
                        </tr>
                    </thead>
                     <tbody>
                      <asp:Repeater  ID="grdJob" runat="server"  > 
                    <ItemTemplate>
                        <tr>
                            <td width="40" align="center">
                                <input runat="server" value='<%# DataBinder.Eval(Container.DataItem,"ID")%>' id="chk" name="chk"
                                    type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                            </td>
                            <td width="100" align="center">
                            <a style="text-decoration: underline; border-bottom-color: Red;" href='ResumeDetails.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID") %>'>
                                <%# Eval("name")%>
                            </a>
                            </td>
                            <td width="250" align="center">
                            <%# Eval("Position")%>
                            </td>
                            <td align="center" width="100">
                            <%# Eval("TalentType")%>
                            </td>
                            <td align="center" style="">
                            <%# Eval("HighestEducation")%>
                            </td>
                            <td align="center" style="">
                            <%# Eval("ContactAddress")%>
                            </td>
                            <td align="center" style="">
                            <%# Eval("Telephone")%>
                            </td>
                            <td align="center" style="">
                            <%# Eval("Mobile")%>
                            </td>
                            <td align="center" style="">
                            <%# GetShortDate(DataBinder.Eval(Container.DataItem, "AddDate").ToString())%>
                            </td>
                            <td align="center" style="">
                            <%# turncn(Convert.ToInt32(Eval("Mark")))%>
                            </td>
                            <td align="center" style="">
                            <%# RelaseState(Convert.ToBoolean(Eval("isEnable")))%>
                            </td>
                            <td align="center" style="">
                                <asp:LinkButton ID="xiugai" runat="server" Text="删除" Enabled="true" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID")%>'
                                    OnCommand="xiugai_Command" />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater >
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="12">
                                    <p class="zi1">
                                                     <input runat="server" class="checkbox" type="checkbox" id="chkall" name="chkall" onclick="CheckMinoAll();" />
                                        全选
                                        <asp:Button ID="btnDelete" runat="server" Font-Size="9pt" OnClick="btnDelete_Click"
                                            OnClientClick="return CheckSelect();return confirm('你确认要删除吗?');" Text="批量删除" CssClass="del"  />
                                    </p>
                                    <p class="zi2">
                                        <uc1:PageNo ID="PageNo1" runat="server" />
                                    </p>
                                </td>
                            </tr>
                        </tfoot>
                        </table>
                         <input type="hidden" id="CheckedIDS" name="CheckedIDS" value="0" runat="server" />
            </div>
            <asp:HiddenField ID="HiddenField1" runat="server" />
        </div>
            </div>
    </form>
    </div>
</asp:Content>
